package lms.dwr.demo.model;

public class ModelStudent
extends ModelBase
{

	/**
	 * The serial UID
	 */
	private static final long serialVersionUID = -5484359811843784415L;
	
	private String studentNo;
	private Integer studentType = null;
	private String studentTypeText = "";
	private String studentCName;
	private String studentEName;
	private Integer studentSex;
	private Integer studentAge;
	private String studentBirthday;
	private String studentPrimarySchool;
	private String studentMiddleSchool;
	private String studentSeniorSchool;
	private String studentGrade;
	private String studentHomeRegion;
	private String studentHomePhone;
	private String studentHomeAddress;
	private String studentFather;
	private String studentFatherPhone;
	private Integer studentFatherCompany = ECompany.NONE.getValue();
	private String studentMother;
	private String studentMotherPhone;
	private Integer studentMotherCompany = ECompany.NONE.getValue();
	private String studentExpectation;
	private Integer studentStatus;
	private String studentStatusText = "";
	private String studentPhoto;
	private String studentEmail;
	
	/**
	 * Enumeration of company 
	 */
	public static enum ECompany
	{
		NONE(1),
		INSTITUTIONS(2),
		ENTERPRISE(3);
		
		private int value;
		
		ECompany(int value)
		{
			this.value = value;
		}
		
		public int getValue()
		{
			return value;
		}
	}
	
	/**
	 * Enumeration of student status
	 */
	public static enum EStudentStatus
	{
		DELETE(-2,"删除"),
		CANCLED(-1, "报名取消"),
		INACTIVE(0, "流失"),
		XD_INACTIVE(11, "续读流失"),
		SD_INACTIVE(12, "升段流失"),
		ENROLLED(1, "已报名"),	
		READING(2, "在读"),		
		SUSPEND(3, "休学"),		
		RETIRED(4, "退学"),		
		GRADUATED(5, "正常结束");
		
		private int value;
		private String text;
		
		EStudentStatus (int value, String text)
		{
			this.value = value;
			this.text = text;
		}
		
		public int getValue()
		{
			return value;
		}
		
		public String getText()
		{
			return text;
		}
	}

	public String getStudentNo()
	{
		return studentNo;
	}

	public void setStudentNo(String studentNo)
	{
		this.studentNo = studentNo;
	}

	public Integer getStudentType()
	{
		return studentType;
	}

	public void setStudentType(Integer studentType)
	{
		this.studentType = studentType;
	}

	public String getStudentTypeText()
	{
		return studentTypeText;
	}

	public void setStudentTypeText(String studentTypeText)
	{
		this.studentTypeText = studentTypeText;
	}

	public String getStudentCName()
	{
		return studentCName;
	}

	public void setStudentCName(String studentCName)
	{
		this.studentCName = studentCName;
	}

	public String getStudentEName()
	{
		return studentEName;
	}

	public void setStudentEName(String studentEName)
	{
		this.studentEName = studentEName;
	}

	public Integer getStudentSex()
	{
		return studentSex;
	}

	public void setStudentSex(Integer studentSex)
	{
		this.studentSex = studentSex;
	}

	public Integer getStudentAge()
	{
		return studentAge;
	}

	public void setStudentAge(Integer studentAge)
	{
		this.studentAge = studentAge;
	}

	public String getStudentBirthday()
	{
		return studentBirthday;
	}

	public void setStudentBirthday(String studentBirthday)
	{
		this.studentBirthday = studentBirthday;
	}

	public String getStudentPrimarySchool()
	{
		return studentPrimarySchool;
	}

	public void setStudentPrimarySchool(String studentPrimarySchool)
	{
		this.studentPrimarySchool = studentPrimarySchool;
	}

	public String getStudentMiddleSchool()
	{
		return studentMiddleSchool;
	}

	public void setStudentMiddleSchool(String studentMiddleSchool)
	{
		this.studentMiddleSchool = studentMiddleSchool;
	}

	public String getStudentSeniorSchool()
	{
		return studentSeniorSchool;
	}

	public void setStudentSeniorSchool(String studentSeniorSchool)
	{
		this.studentSeniorSchool = studentSeniorSchool;
	}

	public String getStudentGrade()
	{
		return studentGrade;
	}

	public void setStudentGrade(String studentGrade)
	{
		this.studentGrade = studentGrade;
	}

	public String getStudentHomeRegion()
	{
		return studentHomeRegion;
	}

	public void setStudentHomeRegion(String studentHomeRegion)
	{
		this.studentHomeRegion = studentHomeRegion;
	}

	public String getStudentHomePhone()
	{
		return studentHomePhone;
	}

	public void setStudentHomePhone(String studentHomePhone)
	{
		this.studentHomePhone = studentHomePhone;
	}

	public String getStudentHomeAddress()
	{
		return studentHomeAddress;
	}

	public void setStudentHomeAddress(String studentHomeAddress)
	{
		this.studentHomeAddress = studentHomeAddress;
	}

	public String getStudentFather()
	{
		return studentFather;
	}

	public void setStudentFather(String studentFather)
	{
		this.studentFather = studentFather;
	}

	public String getStudentFatherPhone()
	{
		return studentFatherPhone;
	}

	public void setStudentFatherPhone(String studentFatherPhone)
	{
		this.studentFatherPhone = studentFatherPhone;
	}

	public Integer getStudentFatherCompany()
	{
		return studentFatherCompany;
	}

	public void setStudentFatherCompany(Integer studentFatherCompany)
	{
		this.studentFatherCompany = studentFatherCompany;
	}

	public String getStudentMother()
	{
		return studentMother;
	}

	public void setStudentMother(String studentMother)
	{
		this.studentMother = studentMother;
	}

	public String getStudentMotherPhone()
	{
		return studentMotherPhone;
	}

	public void setStudentMotherPhone(String studentMotherPhone)
	{
		this.studentMotherPhone = studentMotherPhone;
	}

	public Integer getStudentMotherCompany()
	{
		return studentMotherCompany;
	}

	public void setStudentMotherCompany(Integer studentMotherCompany)
	{
		this.studentMotherCompany = studentMotherCompany;
	}

	public String getStudentExpectation()
	{
		return studentExpectation;
	}

	public void setStudentExpectation(String studentExpectation)
	{
		this.studentExpectation = studentExpectation;
	}

	public Integer getStudentStatus()
	{
		return studentStatus;
	}

	public void setStudentStatus(Integer studentStatus)
	{
		this.studentStatus = studentStatus;
	}

	public String getStudentStatusText()
	{
		if (studentStatus != null) 
		{
			for (EStudentStatus status : EStudentStatus.values()) 
			{
				if (status.getValue() == studentStatus) 
				{
					studentStatusText = status.getText();
					break;
				}
			}
		}
		return studentStatusText;
	}

	public void setStudentStatusText(String studentStatusText)
	{
		this.studentStatusText = studentStatusText;
	}

	public String getStudentPhoto()
	{
		return studentPhoto;
	}

	public void setStudentPhoto(String studentPhoto)
	{
		this.studentPhoto = studentPhoto;
	}

	public String getStudentEmail()
	{
		return studentEmail;
	}

	public void setStudentEmail(String studentEmail)
	{
		this.studentEmail = studentEmail;
	}
	
}
